class DesignPromotionsController < ApplicationController
  layout "product"

  def index
    @promotions = DesignerPromotion.paginate(page: params[:page] || 1, per_page: params[:per_page] || 10).order("id desc")
  end

  def show
    @promotion = DesignerPromotion.find(params[:id])
    @others = DesignerPromotion.where('id != ?', params[:id]).limit(2).order("updated_at DESC")
  end

end
